package com.eastcompeace.transform.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.eastcompeace.transform.dao.UserDao;
import com.eastcompeace.transform.entity.User;

@RestController
public class SampleController {

	@Autowired
	UserDao userDao;

	@GetMapping("/")
	User home() {
		User user = userDao.getUser(1);
		return user;
	}
}
